extends Node2D

@onready var area_2d = $Area2D

# Called when the node enters the scene tree for the first time.
func _ready():
	area_2d.area_entered.connect(on_area_entered)


func on_area_entered(other_area: Area2D):
	GameEvents.emit_experience_vail_collected(1)
	queue_free()
	

# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
	pass
